import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';

class AnnotatedRegionDemo extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return AnnotatedRegionDemoState();
  }
}

class AnnotatedRegionDemoState extends State<AnnotatedRegionDemo> {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      color:Colors.white,
      child: AnnotatedRegion<SystemUiOverlayStyle>(
        child: Column(
          children: <Widget>[
            Container(
              height: 200,
              color: Colors.brown,
            ),
          ],
        ),
        value: SystemUiOverlayStyle.dark,
      ),
    );
  }
}